﻿using System;
using System.Collections.Generic;
using System.Text;
using FunctionalCLR.Core;

namespace FunctionalCLR.Shell.Function.Flow {
    public class BreakNode : FuncNode {

        public BreakNode()
            : base() {
            base.Value = "break";
        }

        public override FuncNode GetReversedFunction(int index) {
            throw new NotImplementedException();
        }

        public override object Evaluate() {
            throw new BreakException();
        }
    }
}
